var SpringAngularJS = {};

/*module ngRoute using $routeProvider redirect to page
ngTable : using for dynamic table: ng-table
ui.bootstrap using for tabset => dynamic tab
angularFileUpload using upload file
ui.ace => for editor

*/


var App = angular.module('SpringAngularJS', ['ngRoute', 'ngTable', 'ui.bootstrap', 'angularFileUpload', 'ui.ace', 'nvd3ChartDirectives']);

//Declare app level module which depends on filters, and services
App.config(['$routeProvider', function ($routeProvider){
	
	$routeProvider.when('/todo', {
		templateUrl : 'todo/start',
		controller : TodoController
	});
	
	$routeProvider.when('/address', {
		templateUrl : 'address/start',
		controller : AddressBookController
	});
	
	$routeProvider.when('/table', {
		templateUrl : 'table/start',
		controller : TableController
	});
	
	$routeProvider.when('/tabs', {
		templateUrl : 'tabs/start',
		controller : TabsController
	});
	
	$routeProvider.when('/file', {
		templateUrl : 'file/start',
		controller : FileUploadController
	});
	
	$routeProvider.when('/editor', {
		templateUrl : 'editor/start',
		controller : EditorController
	});
	
	$routeProvider.when('/d3chart', {
		templateUrl : 'd3chart/start',
		controller : D3ChartController
	});
	
	$routeProvider.otherwise({
		redirectTo: '/todo'
	});
}]);